package edu.gyu.myshop.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ls
 * @since 2024-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private Double price;

    private Integer store;

    private String picture;

    private Integer goodstypeId;

    @TableField("isRecommend")
    private Integer isrecommend;

    private Integer isNew;


    @TableField(exist = false)
    private String typename;
    @TableField(exist = false)
    private int buyNum;

}
